import store from "../index";
import {
  VuexModule,
  Module,
  Mutation,
  getModule,
} from "vuex-module-decorators";
@Module({ dynamic: true, store, name: "about" })
class About extends VuexModule {
  public aboutSum: number = 0;

  @Mutation
  setSum(val: any) {
    this.aboutSum = val;
  }
}
//使用 getModule 访问器使用更多类型安全机制
export const AboutModule = getModule(About);
